package com.yijiu.trb;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;

/**
 * 注册成功提示页面
 * 
 * @author TangChao
 */
public class RegistDoneActivity extends BTitleActivity
{
	private String realName;

	@Override
	public void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_regist_done);
		initWidget();
	}

	@Override
	protected void initWidget()
	{
		titleView.setText("提示");
		Intent intent = getIntent();
		TextView nameTextView = (TextView) findViewById(R.id.tv_regist_three_username);
		TextView emailTextView = (TextView) findViewById(R.id.tv_regist_three_email);
		nameTextView.setText(intent.getStringExtra("nameStr"));
		emailTextView.setText(intent.getStringExtra("emailStr"));
		realName = intent.getStringExtra("realNameStr");
	}

	public void registThreeClick(View v)
	{
		int id = v.getId();
		switch (id)
		{
			case R.id.btn_regist_three_activie:
				Intent intent = new Intent(this, ActiveActivity.class);
				intent.putExtra("realNmaeStr", realName);
				intent.putExtra("md5Id", getIntent().getStringExtra("md5Id"));
				startActivity(intent);
				finish();
				break;
			default:
				break;
		}
	}
}
